package com.huawei.esdk.tp.common;

import com.huawei.esdk.platform.common.constants.ESDKErrorCodeConstant;

public interface ErrInfo {
	/**
	 *  通用服务
	 */
	int SDK_SYSTEM_ERRORCODE = ESDKErrorCodeConstant.ERROR_CODE_SYS_ERROR;
	String SDK_SYSTEM_ERRORDESC = "SDK SYSTEM INTERNAL ERROR!";
	  
	int DEVICE_UNKNOWN_ERRORCODE = 0x00000001;
	String DEVICE_UNKNOWN_ERRORDESC = "Device unknown error!";
	
    int LOGIN_REPETITIVE_ERRORCODE = 570462213;
    String LOGIN_REPETITIVE_ERRORDESC = "LOGIN REPETITIVE ERROR";
    
	//参数错误
	int DATA_ERRORCODE = 0x50000001;
    String DATA_ERRORDESC = "DATA ERROR";
	
	/**
     *  必填参数不全
     */
    int SDK_PARAM_NOT_COMPLETE_ERRORCODE = 0x22009002;
    String SDK_PARAM_NOT_COMPLETE_ERRORDESC = "SDK PARAM NOT COMPLETE ERROR!";
    
    
    int PARAM_OUTOFRANGE_ERRORCODE = 0x22009003;
    String PARAM_OUTOFRANGE_ERRORDESC = "FUNC PARAMS ARE NOT IN THE RANGE!";
    
    /**
     * 参数为保留字段
     */
    int PARAM_IS_RESERVE_ERRORCODE = 0x22009004;
    String PARAM_IS_RESERVE_ERRORDESC = "PARAM IS RESERVE NOW!";
	
    int DEVICE_CONNECT_ERROR = ESDKErrorCodeConstant.ERROR_CODE_DEVICE_CONN_ERROR;
    String DEVICE_CONNECT_ERROR_ERRORDESC = "CONNECTING DEVICE ERROR";
    
	//数据类型错误
	int DATE_TYPE_ERROR = 0x22009001;
	String DATE_TYPE_ERRDESC = "DATE TYPE ERROR";
	
	/**
	 *  用户服务
	 */
	int APPPWD_ERRORCODE = 0x50200032;
	String APPPWD_ERRORDESC = "ACCOUNT OR PASSWORD ERROR!";
	
	/**
	 *  会话服务
	 */
	int APPLOGIN_ERRORCODE = 0x50900018;
	String APPLOGIN_ERRORDESC = "AUTHORIZE FAILURE!";
	
	int SESSIONID_ERRORCODE = 0x5090000C;
	String SESSIONID_ERRORDESC = "SESSIONID IS ERROR!";
	
	int AUTHORIZE_ERRORCODE = 0x22099000;
	String AUTHORIZE_ERRORDESC = "SESSIONID IS ERROR OR USER DID NOT LOGIN!";
	/**
	 *  会议服务
	 */
	int CONF_ISNOTCONVENING_ERRORCODE = 0x22059001;
	String CONF_ISNOTCONVENING_ERRORDESC = "CONFERENCE IS NOT CONVENING OR NOT EXIST!";
	
	int CONF_ISDYNAMICSITE_ERRORCODE = 0x22059002;
	String CONF_ISDYNAMICSITE_ERRORDESC = "NO ANONYMOUS SITES IN THE ANONYMOUS  MEETING!";

	int SITE_URI_ISNULL_ERRORCODE = 0x22059003;
	String SITE_URI_ISNULL_ERRORDESC = "SITE'S URI IS NULL!";

	int SITE_NOT_EXIST_ERRORCODE = 0x50505004;
	String SITE_NOT_EXIST_ERRORDESC = "SITE IS NOT EXIST!";
	
	int SITE_TIMERANGE_ERRORCODE = 0x50500017;
	String SITE_TIMERANGE_ERRORDESC = "THE CONF TIMERANGE IS ERROR!";
	
	int CONF_ID_ISNULL_ERRORCODE = 0x22059006;
	String CONF_ID_ISNULL_ERRORDESC = "THE CONF ID IS NULL!";
	
	int CONF_ID_IS_INVALID_ERRORCODE = 0x22059007;
	String CONF_ID_IS_INVALID_ERRORDESC = "CONF ID IS INVALID";

	
    int SITE_NOT_EXIST_IN_DEVICEMAP_ERRORCODE = ESDKErrorCodeConstant.ERROR_CODE_DEVICE_DOES_NOT_EXIST;
	String SITE_NOT_EXIST_IN_DEVICEMAP_ERRORDESC = "THE SITE IS NOT EXIST IN THE SDK CONFIGRATION OF DEVICE LIST!";
	
	int SITE_Name_ISNULL_ERRORCODE = 0x22059009;
    String SITE_Name_ISNULL_ERRORDESC = "SITE'S Name IS NULL!";
    
    int CONTROL_CODE_IS_NULL_ERRORCODE = 0x22059010;
    String CONTROL_CODE_IS_ERRORDESC = "CONTROL CODE IS NULL";
    
    int CONTROL_CODE_IS_INCORRECT_ERRORCODE = 0x22059011;
    String CONTROL_CODE_IS_INCORRECT_ERRORDESC = "CONTROL CODE IS INCORRECT";
    
    /**
     * 会议不支持录播
     */
    int CONF_IS_NOT_SUPPORT_RECORD_ERRORCODE = 0x22059012;
    String CONF_IS_NOT_SUPPORT_RECORD_ERRORDESC = "CONF IS NOT SUPPORT RECORD BROAD";
    
    /**
     * 会议不支持直播
     */
    int CONF_IS_NOT_SUPPORT_DIRECT_ERRORCODE = 0x22059013;
    String CONF_IS_NOT_SUPPORT_DIRECT_ERRORDESC = "CONF IS NOT SUPPORT DIRECT BROAD";
    
    /**
     * 与密码相关的参数输入值错误
     */
    int PWD_ERRORCODE = 0x22059014;
    String PWD_ERRORDESC = "PASSWORD ERROR";
    
    
    int CONFERENCE_ID_IS_NOT_EXIST_ERRORCODE = 0x50500002;
    String CONFERENCE_ID_IS_NOT_EXIST_ERRORDESC = "CONFERENCE ID IS NOT EXIST";
    
    /**
     * AD鉴权错误码，只有TP OA使用
     */
    int AD_APPPWD_ERRORCODE = 0x22009006;
    String AD_APPPWD_ERRORDESC = "AD ACCOUNT OR PASSWORD ERROR!";
    
    /**
     *  密码解密失败
     */
    int SDK_TP_PASSWORD_DECODE_ERRORCODE = 2130000030;
    String SDK_TP_PASSWORD_DECODE_ERRORDESC = "PASSWORD DECODE FAILED!";
    
    /**
     *  密码加密失败
     */
    int SDK_TP_PASSWORD_ENCODE_ERRORCODE = 2130000031;
    String SDK_TP_PASSWORD_ENCODE_ERRORDESC = "PASSWORD ENCODE FAILED!";
}
